package com.knowswift.common.bean.issue.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class UpdateMonitorDeviceParam {
    @NotBlank(message = "id不能为空")
    private String deviceId;
    @NotBlank(message = "模块不可为空")
    private String moduleName;
    @NotBlank(message = "项目名称不可为空")
    private String projectName;
    @NotBlank(message = "区域不可为空")
    private String areaName;
    @Range(min = -90, max = 90, message = "纬度范围在-90°~90°")
    private Double latitude;
    @Range(min = -180, max = 180, message = "进度范围在-180°~180°")
    private Double longitude;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime activateTime;
    private Boolean acceptPosition;
    private List<String> images;
    private Integer monitorInterval;
}
